package com.tul.vapp.servicecenter.util;

import org.apache.commons.dbcp.BasicDataSource;

/**
 * create by wujunlei 2018/01/03
 */
public class EncryptDataSource extends BasicDataSource {

	/**
	 * setPassword
	 *
	 * @param password password
	 */
	@Override
	public void setPassword(String password) {
		// 解密后重置
		String newPassword = EncryptUtils.decodeBase64String(password);
		super.setPassword(newPassword);
	}
}
